package com.liwenfeng;

//@SpringBootApplication
public class Function2frameworkApplication {

    public static void main(String[] args) {
//        SpringApplication.run(Function2frameworkApplication.class, args);
//        for (Annotation annotation : Function2frameworkApplication.class.getAnnotations()) {
//            Annotation[] annotations = annotation.annotationType().getAnnotations();
//            for (Annotation annotation1 : annotations) {
//                System.out.println(annotation1);
//            }
//        }
//        ConfigurableApplicationContext context = SpringApplication.run(Function2frameworkApplication.class);

//        Function2frameworkApplication bean = context.getBean(Function2frameworkApplication.class);
//        System.out.println(bean);


//        Field[] declaredFields = Account.class.getDeclaredFields();
//        for (Field field : declaredFields) {
//            System.out.println(field.getName());
//        }
//        Annotation[] annotations = Account.class.getDeclaredAnnotations();
//        System.out.println(annotations.length);
//        for (Annotation annotation : annotations) {
//            System.out.println(annotation);
//        }

//        Optional<String> op = Optional.of("张三");
//        Optional<Object> empty = Optional.empty();
//        System.out.println(empty);
//        System.out.println(op);

    }
}
